﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};

	var cols = [
	{col:{header:'系统代号', width:100, sortable:true}, field:{name:'rest_log__appid',type:'string'}},
	{col:{header:'访问时间', width:139, sortable:true, align:'center',
		renderer:function(value) {
			return JxUtil.renderDate(value, 'Y-m-d H:i:s');
		}}, field:{name:'rest_log__req_date',type:'date'}},
	{col:{header:'访问URL', width:100, sortable:true, colindex:10000, hidden:true}, field:{name:'rest_log__req_url',type:'string'}},
	{col:{header:'执行结果', width:100, sortable:true}, field:{name:'rest_log__return_vax',type:'string'}},
	{col:{header:'错误信息', width:149, sortable:true}, field:{name:'rest_log__return_msg',type:'string'}},
	{col:{header:'请求参数', width:274, sortable:true}, field:{name:'rest_log__req_params',type:'string'}},
	{col:{header:'响应数据', width:288, sortable:true}, field:{name:'rest_log__out_params',type:'string'}},
	{col:{header:'主键', width:100, sortable:true, colindex:10000, hidden:true}, field:{name:'rest_log__log_id',type:'string'}}
	];
	
	config.param = {
		cols: cols,
		sorts: null,
		hasQuery: '1',
		isedit: '0',
		isshow: '1',
		funid: 'rest_log'
	};
	
	
	config.eventcfg = {		
	setapp: function(){
		Jxstar.createNode('rest_app');
	},
    
    createrest: function(){
		Jxstar.createNode('rest_tnt');
	},
    
    instdata: function(){
		Jxstar.createNode('rest_tnt');
	},
};
		
	return new Jxstar.GridNode(config);
}